<?php
/*
 * Created on Aug 19, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
?>
<form action="<?=site_url(array('c' => 'cms_gallery', 'm' => 'edit_media', 'id' => $media['id']))?>" method="post" id="mediaForm">
<table class="form-table" cellpadding="5" cellspacing="0" style="width: 100%;">
	<tbody>
		<tr>
			<th>Title: *</th>
	    	<td class=""><input type="text" name="media_title" class="input-text required" value="<?=$media['title']?>"></td>
			<td rowspan="4">							
				<img src="<?=$media_thumb['user_media_url'].$media['rawname'].$media_thumb['thumb_marker'].$media["fileext"]?>" alt="<?=$media['title']?>"/>
			</td>			
	    </tr>		
	    <tr>
			<th>Caption: *</th>
	    	<td nowrap="nowrap">
				<input type="text" name="media_content" class="input-text required" value="<?=$media['content']?>">
			</td>
	    </tr>
        <tr>
	        <th>Sort: *</th>
	        <td colspan="2"><input type="text" name="media_sort" class="input-text required" value="<?=$media['sort']?>"></td>
		</tr>
        <tr>
	        <th>Publish ?: </th>
	        <td colspan="2">
	        	<input type="radio" name="media_publish" value="1" <?=$media['publish'] == 1?'checked':''?>>Yes
				<input type="radio" name="media_publish" value="0" <?=$media['publish'] == 0?'checked':''?>>No
	        </td>
		</tr>
	</tbody>
</table>
</form>